Get Bet History

Fetch Betting History

1) Request URL

URL: {APIURL}/api/v1/record/getbetlogs

2) Request Parameters

Parameter Type Description
UserId string Unique identifier for the operator’s player
GameId string Game ID
Page Int Current page
PageSize Int Number of records per page
StartTime Int Start time in timestamp format
EndTime Int End time in timestamp format
  • Example:
    复制{
      "UserId": "",
      "GameId": "",
      "StartTime": 1730390400,
      "EndTime": 1734969599,
      "PageSize": 20,
      "Page": 1
    }
    

3) Response

Parameter Type Description
ID string Unique ID of the record, ordered in ascending order
Pid int64 Platform player’s ID
UserID string[4-40] Unique identifier for the operator’s player
GameID string Game ID
Bet float Total bet amount
Win float Total win amount
WinLose float Net win/loss amount
InsertTime datetime Timestamp of when the record was saved
AppID string Operator ID
Balance float Balance after settlement
Grade int Betting level
Completed boolean Whether the current game round is completed
RoundID string Round ID, the same for a single game round
  • Example:
    复制{
      "code": 0,
      "error": "",
      "data": {
          "List": [
              {
                  "ID": "1871403628893790208",
                  "Pid": 103121,
                  "UserID": "hHFnbbbV-1735010979638-DemoUser",
                  "GameID": "pg_65",
                  "Bet": 0,
                  "Win": 0,
                  "InsertTime": "2024-12-24T03:52:48.786Z",
                  "AppID": "faketrans",
                  "Balance": 99923.5,
                  "WinLose": 0,
                  "Grade": 503,
                  "Completed": true,
                  "RoundID": "676a300ca9128bb367cf51fc"
              },
              {
                  "ID": "1871403611277012992",
                  "Pid": 103121,
                  "UserID": "hHFnbbbV-1735010979638-DemoUser",
                  "GameID": "pg_65",
                  "Bet": 30,
                  "Win": 22.5,
                  "InsertTime": "2024-12-24T03:52:44.586Z",
                  "AppID": "faketrans",
                  "Balance": 99923.5,
                  "WinLose": -7.5,
                  "Grade": 503,
                  "Completed": false,
                  "RoundID": "676a300ca9128bb367cf51fc"
              },
              {
                  "ID": "1871403598832066560",
                  "Pid": 103121,
                  "UserID": "hHFnbbbV-1735010979638-DemoUser",
                  "GameID": "pg_65",
                  "Bet": 0,
                  "Win": 0,
                  "InsertTime": "2024-12-24T03:52:41.619Z",
                  "AppID": "faketrans",
                  "Balance": 99931,
                  "WinLose": 0,
                  "Grade": 503,
                  "Completed": true,
                  "RoundID": "676a3005a9128bb367cf51f9"
              },
              {
                  "ID": "1871403583363891200",
                  "Pid": 103121,
                  "UserID": "hHFnbbbV-1735010979638-DemoUser",
                  "GameID": "pg_65",
                  "Bet": 30,
                  "Win": 9,
                  "InsertTime": "2024-12-24T03:52:37.931Z",
                  "AppID": "faketrans",
                  "Balance": 99931,
                  "WinLose": -21,
                  "Grade": 503,
                  "Completed": false,
                  "RoundID": "676a3005a9128bb367cf51f9"
              },
              {
                  "ID": "1871403567224786944",
                  "Pid": 103121,
                  "UserID": "hHFnbbbV-1735010979638-DemoUser",
                  "GameID": "pg_65",
                  "Bet": 30,
                  "Win": 0,
                  "InsertTime": "2024-12-24T03:52:34.082Z",
                  "AppID": "faketrans",
                  "Balance": 99952,
                  "WinLose": -30,
                  "Grade": 503,
                  "Completed": true,
                  "RoundID": "676a3002a9128bb367cf51f7"
              }
          ],
          "All": 167580
      }
    }